<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-card-body">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
          <legend>订单信息</legend>
        </fieldset>
        <div class="layui-form">
          <table class="layui-table">
            <colgroup>
              <col width="150">
              <col >
              <col width="150">
            </colgroup>
            <tbody>
              <tr>
                <th>订单编号</th>
                <td><?=$list[0]['order_no']?></td>
                <th>收货人姓名</th>
                <td><?=$list[0]['sh_name']?></td>
                <th>下单人ID</th>
                <td><?=$user['id']?></td>
              </tr>
              <tr>
                <th>订单总价</th>
                <td><?=$list[0]['order_total_money']?></td>
                <th>收货人地址</th>
                <td><?=$list[0]['sh_address']?></td>
                <th>下单人姓名</th>
                <td><?=$user['username']?></td>
              </tr>
              <tr>
                <th>下单时间</th>
                <td><?php echo date("Y-m-d",$list[0]['create_time'])?></td>
                <th>收货人电话</th>
                <td><?=$list[0]['sh_phone']?></td>
                <th>下单人电话</th>
                <td><?=$user['phone']?></td>
              </tr>
            </tbody>
          </table>
        </div>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
          <legend>商品列表</legend>
        </fieldset>
        <div class="layui-form">
          <table class="layui-table">
            <colgroup>
              <col width="100">
              <col width="110">
              <col width="300">
              <col width="300">
              <col width="100">
              <col width="100">
              <col width="100">
            </colgroup>
            <thead>
              <tr>
                <th>操作 </th>
                <th>商品缩略图 </th>
                <th>商品名称</th>
                <th>规格名称</th>
                <th>商品数量 </th>
                <th>商品单价 </th>
                <th>商品价格 </th>
                <th>是否发货</th>
              </tr>
            </thead>
            <tbody>
              <?php foreach($list as $key=>$value):?>
              <tr>
                  <td>
                      <?php if($value['fahuo_status'] == 0):?>
                          ————
                      <?php else:?>
                          <a href="https://www.kuaidi100.com/chaxun?com=<?=$value["kd_code"]?>&nu=<?=$value["kd_no"]?>" target="_blank" class="layui-btn layui-btn-xs" lay-event="detail"><?=$value["kd_no"]?></a>
                      <?php endif;?>
                  </td>
                <th><a href="<?=$value["pic"]?> "><img src="<?=$value["pic"]?>"/></a></th>
                <td><?=$value["title"]?></td>
                <td><?=$value["goods_price_title"]?></td>
                <td><?=$value["nums"]?></td>
                <td><?=$value["goods_price_price"]?></td>
                <td><?=$value["total_money"]?></td>
                <td><?php echo c("type.fahuo_status")[$value['fahuo_status']] ?></td>
              </tr>
              <?php endforeach; ?>
            </tbody>
          </table>
        </div>
    </div>
  </div>
</div>
<script>
  layui.use(['form'], function() {
    var $ = layui.$,
      form = layui.form;
    form.render();

    var ue = UE.getEditor('container');
  });
</script>
